package com.cxc.demo.com.cxc.demo;

import com.cxc.demo.dto.Person;
import com.cxc.demo.dto.PersonDTO;
import com.cxc.demo.mapper.PersonMapper;

import java.math.BigDecimal;
import java.util.Date;

public class TestDemo {

    public static void main(String[] args) {

        Person person = new Person();
//        person.setDescribe("测试");
        person.setAge(18);
        person.setName("张三");
        person.setHeight(170.5);
        person.setSource(new BigDecimal("100"));
        person.setCreateTime("2020-03-23");
        PersonDTO personDTO = PersonMapper.INSTANCT.conver(person);

        System.out.println("转换："+personDTO);
    }
}
